package cn.bgs.serviceuser;

import org.mybatis.spring.annotation.MapperScan;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.cloud.client.discovery.EnableDiscoveryClient;
import org.springframework.cloud.openfeign.EnableFeignClients;
import org.springframework.context.annotation.ComponentScan;

/**
 * @Author:YiChen
 * @program: IntelliJ IDEA
 * @Description:
 * @Created 2021/9/28-20:00
 */
@SpringBootApplication
@EnableFeignClients    //服务调用
@EnableDiscoveryClient  //nacos注册
@ComponentScan(basePackages = {"cn.bgs"})
@MapperScan("cn.bgs.serviceuser.dao")
public class UserApplication {

    public static void main(String[] args) {
        SpringApplication.run(UserApplication.class);
    }
}
